﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001413 RID: 5139
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyPassengerInfo : IMessage<TrainPartyPassengerInfo>, IMessage, IEquatable<TrainPartyPassengerInfo>, IDeepCloneable<TrainPartyPassengerInfo>, IBufferMessage
	{
		// Token: 0x170040D8 RID: 16600
		// (get) Token: 0x0600E635 RID: 58933 RVA: 0x00267FFD File Offset: 0x002661FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyPassengerInfo> Parser
		{
			get
			{
				return TrainPartyPassengerInfo._parser;
			}
		}

		// Token: 0x170040D9 RID: 16601
		// (get) Token: 0x0600E636 RID: 58934 RVA: 0x00268004 File Offset: 0x00266204
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyPassengerInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170040DA RID: 16602
		// (get) Token: 0x0600E637 RID: 58935 RVA: 0x00268016 File Offset: 0x00266216
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyPassengerInfo.Descriptor;
			}
		}

		// Token: 0x0600E638 RID: 58936 RVA: 0x0026801D File Offset: 0x0026621D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassengerInfo()
		{
		}

		// Token: 0x0600E639 RID: 58937 RVA: 0x00268030 File Offset: 0x00266230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassengerInfo(TrainPartyPassengerInfo other) : this()
		{
			this.passengerInfoList_ = other.passengerInfoList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E63A RID: 58938 RVA: 0x0026805A File Offset: 0x0026625A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyPassengerInfo Clone()
		{
			return new TrainPartyPassengerInfo(this);
		}

		// Token: 0x170040DB RID: 16603
		// (get) Token: 0x0600E63B RID: 58939 RVA: 0x00268062 File Offset: 0x00266262
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainPartyPassenger> PassengerInfoList
		{
			get
			{
				return this.passengerInfoList_;
			}
		}

		// Token: 0x0600E63C RID: 58940 RVA: 0x0026806A File Offset: 0x0026626A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyPassengerInfo);
		}

		// Token: 0x0600E63D RID: 58941 RVA: 0x00268078 File Offset: 0x00266278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyPassengerInfo other)
		{
			return other != null && (other == this || (this.passengerInfoList_.Equals(other.passengerInfoList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E63E RID: 58942 RVA: 0x002680AC File Offset: 0x002662AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.passengerInfoList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E63F RID: 58943 RVA: 0x002680E0 File Offset: 0x002662E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E640 RID: 58944 RVA: 0x002680E8 File Offset: 0x002662E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E641 RID: 58945 RVA: 0x002680F1 File Offset: 0x002662F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.passengerInfoList_.WriteTo(ref output, TrainPartyPassengerInfo._repeated_passengerInfoList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E642 RID: 58946 RVA: 0x00268118 File Offset: 0x00266318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.passengerInfoList_.CalculateSize(TrainPartyPassengerInfo._repeated_passengerInfoList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E643 RID: 58947 RVA: 0x00268151 File Offset: 0x00266351
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyPassengerInfo other)
		{
			if (other == null)
			{
				return;
			}
			this.passengerInfoList_.Add(other.passengerInfoList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E644 RID: 58948 RVA: 0x0026817F File Offset: 0x0026637F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E645 RID: 58949 RVA: 0x00268188 File Offset: 0x00266388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.passengerInfoList_.AddEntriesFrom(ref input, TrainPartyPassengerInfo._repeated_passengerInfoList_codec);
				}
			}
		}

		// Token: 0x04005B1F RID: 23327
		private static readonly MessageParser<TrainPartyPassengerInfo> _parser = new MessageParser<TrainPartyPassengerInfo>(() => new TrainPartyPassengerInfo());

		// Token: 0x04005B20 RID: 23328
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B21 RID: 23329
		public const int PassengerInfoListFieldNumber = 2;

		// Token: 0x04005B22 RID: 23330
		private static readonly FieldCodec<TrainPartyPassenger> _repeated_passengerInfoList_codec = FieldCodec.ForMessage<TrainPartyPassenger>(18U, TrainPartyPassenger.Parser);

		// Token: 0x04005B23 RID: 23331
		private readonly RepeatedField<TrainPartyPassenger> passengerInfoList_ = new RepeatedField<TrainPartyPassenger>();
	}
}
